hello, |
Re: Export to word pecifically |
Re: Export to word pecifically
To use the native Export-to-Word command you first make the module view what you want (optional filtering, specific columns displaying info) and then export. A "Book" export will show each column info listed down, a "Table" export will make a table in Word that looks like your view. At first glance it looks like you want to do a "table" export.
Buffer bufResults = create()
void AddRow(string Col1, Col2, Col3, Col4)
{ if (length(bufResults) > 0) then bufResults += "\n" // EOL of previous line, if any
bufResults += Col1
bufResults += "\t"
bufResults += Col2
bufResults += "\t"
bufResults += Col3
bufResults += "\t"
bufResults += Col4
} end AddRow()
string text_1 = whatever(obj),
text_2 = whatever(obj),
text_3 = whatever(obj),
text_4 = whatever(obbj),
textatt_1 = whatever(obj),
textatt_2 = whatever(obj),
textatt_3 = whatever(obj),
textatt_4 = whatever(obj)
AddRow(textatt_1, text_1, "", "")
AddRow("", "", text_2, textatt2)
AddRow("", "", text_3, textatt3)
AddRow(textatt_4, text_4, "", "")
obj.attrDXLName = tempStringOf(bufResults)
delete(bufResults)
|